2015-09-24(腾工).sql 1.1 KB

1234567891011121314151617
  1. if not exists
  2. (select * from syscolumns where id=object_id('tb_ErpOrderProductList') and name='OPlist_Batch')
  3. begin
  4. alter table tb_ErpOrderProductList add OPlist_Batch nvarchar(10) NULL
  5. end
  6. IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'tb_ErpOrderProductList', N'COLUMN',N'OPlist_Batch'))
  7. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÉÌÆ·µ¥Î»' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'tb_ErpOrderProductList', @level2type=N'COLUMN',@level2name=N'OPlist_Batch'
  8. GO
  9. if not exists
  10. (select * from syscolumns where id=object_id('tb_ErpWeddingService') and name='Ws_Unit')
  11. begin
  12. alter table tb_ErpWeddingService add Ws_Unit nvarchar(10) NULL
  13. end
  14. IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'tb_ErpWeddingService', N'COLUMN',N'Ws_Unit'))
  15. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'·þÎñµ¥Î»' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'tb_ErpWeddingService', @level2type=N'COLUMN',@level2name=N'Ws_Unit'
  16. GO